package com.zheng.作业.mode1Test;

import com.zheng.作业.mode1.American;
import com.zheng.作业.mode1.Chinese;
import com.zheng.作业.mode1.Indian;
import com.zheng.作业.mode1.Person11;

public class Test11 {
    public static void main(String[] args) {
        Chinese c=new Chinese();
        American a=new American();
        Indian i=new Indian();
        Person11[] person11s={c,a,i};
        for (Person11 person11 : person11s) {
            person11.eat();
        }
    }
}
